<?php

class Footermenu_Form_Admin_Deletelink extends Engine_Form {
	public function init() {
		// Set form attributes
		$this->setTitle ( 'Delete Link' );
		$this->setDescription ( "Are you sure you want to delete this link?" );
		$this->setAttrib ( 'id', 'admin_members_edit' );
		
		// Buttons
		$this->addElement ( 'Button', 'submit', array ('label' => 'Delete Link', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'prependText' => ' or ', 'onclick' => 'parent.Smoothbox.close();', 'decorators' => array ('ViewHelper' ) ) );
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons' );
		$button_group = $this->getDisplayGroup ( 'buttons' );
		$button_group->addDecorator ( 'DivDivDivWrapper' );
	}
}